Method for Processing Information and Terminal Device

ABSTRACT

A method for processing information is provided. The method includes the following. A wireless fidelity (Wi-Fi) scanning operation is performed through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N access points (APs). The first AP is any one of the N APs and N is an integer greater than one. When an access instruction for the second AP is detected, first power of information transmission is determined according to a feedback duration corresponding to the second AP. The first power is equal to second power plus a first power variable, where a value of the first power variable is greater than zero when the feedback duration corresponding to the second AP is within a preset duration range. An access request is transmitted to the second AP at the first power. A terminal device is also provided.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a 371 application of International Application No. PCT/CN2017/105100, filed on Sep. 30, 2017, which claims priority to Chinese Patent Application No. 201611118312.8, filed on Dec. 7, 2016, the entire disclosures of both of which are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

This disclosure relates to the technical field of electronics, and more particularly, to a method for processing information and a terminal device.

BACKGROUND

An important function of smart phones is capable of mobile interconnection. Wireless local area networks (WLANs), which provide free network services, are now used more and more frequently. When arriving at a strange place, many smart phone users first ask for passwords of the nearby wireless fidelity (Wi-Fi) hotspots.

At present, many public places are equipped with WLANs, especially public places with a large area serving a large number of people such as airports, high-speed rail stations, and the like. For example, in the Shenzhen airport, the service set identifier (SSID) of AirportSZ, namely a Wi-Fi hotspot has nearly 150 access points (APs). However, users sometimes may not quickly connect to the SSID of AirportSZ. Therefore, how to improve the efficiency of accessing Wi-Fi hotspots is a technical problem to be solved in the field.

SUMMARY

Disclosed herein are implementations of a method for processing information and a terminal device, to improve the efficiency of accessing APs.

According to a first aspect of the implementations of the disclosure, a method for processing information is provided. The method includes the following. A Wi-Fi scanning operation is performed through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N APs. The feedback duration refers to a time period from a terminal device transmitting a probe request to a first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request. The first AP is any one of the N APs and N is an integer greater than one. When an access instruction for a second AP is detected, first power of information transmission is determined according to a feedback duration corresponding to the second AP. The first power is equal to a second power plus a first power variable. A value of the first power variable is greater than zero when the feedback duration corresponding to the second AP is within a preset duration range, and the second AP is one of the N APs. An access request is transmitted to the second AP at the first power.

According to a second aspect of the implementations of the disclosure, a terminal device is provided. The terminal device includes at least one processor and a computer readable storage. The computer readable storage is coupled to the at least one processor and stores at least one computer executable instruction thereon which, when executed by the at least one processor, causes the at least one processor to carry out the following. A Wi-Fi scanning operation is performed through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N APs. The feedback duration refers to a time period from the terminal device transmitting a probe request to the first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request. The first AP is any one of the N APs and N is an integer greater than one. First power of information transmission is determined according to a feedback duration corresponding to a second AP when an access instruction for the second AP is detected. The first power is equal to second power plus a first power variable. A value of the first power variable is greater than zero when the feedback duration corresponding to the second AP is within a preset duration range; the second AP is one of the N APs. An access request is transmitted to the second AP at the first power.

According to a third aspect of the implementations of the disclosure, a non-transitory computer readable storage medium storing computer programs is provided. The computer programs, when executed by a processor, are operable with the processor carry out the following. A Wi-Fi scanning operation is performed through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N APs. The feedback duration refers to a time period from the terminal device transmitting a probe request to the first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request. The first AP is any one of the N APs and N is an integer greater than one. First power of information transmission is determined according to a feedback duration corresponding to a second AP when an access instruction for the second AP is detected. The first power is equal to second power plus a first power variable. A value of the first power variable is greater than zero when the feedback duration corresponding to the second AP is within a preset duration range; the second AP is one of the N APs. An access request is transmitted to the second AP at the first power.

BRIEF DESCRIPTION OF DRAWINGS

To illustrate the technical solutions embodied by the implementations of the present disclosure more clearly, the following briefly introduces the accompanying drawings required for describing the implementations or the related art. Apparently, the accompanying drawings in the following description merely illustrate some implementations of the present disclosure. Those of ordinary skill in the art may also obtain other drawings based on these accompanying drawings without creative efforts.

FIG. 1 is a schematic diagram of a communication system according to an implementation of the present disclosure.

FIG. 2 is a schematic flow chart of a method for processing information according to an implementation of the present disclosure.

FIG. 3 is a detailed schematic flowchart of a method for processing information according to an implementation of the present disclosure.

FIG. 4 is a schematic structural diagram of a terminal device according to an implementation of the present disclosure.

FIG. 5 is a schematic structural diagram of another terminal device according to an implementation of the present disclosure.

FIG. 6 is a schematic structural diagram of a yet another terminal device according to an implementation of the present disclosure.

DETAILED DESCRIPTION

In order to illustrate technical solutions of implementations of the present disclosure more clearly, technical solutions of implementations of the present disclosure will be described clearly and completely hereinafter in combination with the accompanying drawings described in the previous chapter. Obviously, the described implementations are merely a part of implementations of the present disclosure, but not all of the implementations. All other implementations obtained by those skilled in the art without creative efforts based on the implementations of the present disclosure shall fall within the protection scope of the present disclosure.

Detailed descriptions are as follows.

Terms “first”, “second”, “third”, “fourth” and the like used in the specification, the claims, and the accompany drawings of the present disclosure are used to distinguish different objects rather than describe a particular order. In addition, the terms “include”, “comprise”, and “have” as well as variations thereof are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or apparatus including a series of steps or units is not limited to the listed steps or units. On the contrary, it can optionally include other steps or units that are not listed; alternatively, other steps or units inherent to the process, method, product, or device can be included either.

The term “implementation” referred to herein means that a particular feature, structure, or feature described in conjunction with the implementation may be contained in at least one implementation of the present disclosure. The phrase appearing in various places in the specification does not necessarily refer to the same implementation, nor does it refer to an independent or alternative implementation that is mutually exclusive with other implementations. It is expressly and implicitly understood by those skilled in the art that an implementation described herein may be combined with other implementations.

Some of the terms in the present disclosure will be explained to be understood by those skilled in the art as follows.

“Terminal device”, also called “user equipment (UE)”, is a device that provides voice and/or data connectivity to a user, such as a handheld device with a wireless connection function, an in-vehicle device, and the like. The common terminal device, for example, may include a mobile phone, a tablet computer, a notebook computer, a handheld computer, a mobile interne device (MID), and a wearable device such as a smart watch, a smart bracelet, a pedometer, and the like.

“Multiple” or “a plurality of” means two or more. “and/or” describes the association relationship of the associated objects and indicates three relationships. For example, A and/or B indicates these three relationship of A existing separately, A and B existing at the same time, and B existing separately. The character “/” generally indicates that the contextual object is an “or” relationship.

FIG. 1 illustrates a schematic diagram of a communication system according to an implementation of the present disclosure. As illustrated in FIG. 1, the communication system includes a terminal device 110 and multiple APs 120. When the terminal device 110 scans for a Wi-Fi network, a probe request is transmitted on a certain channel. After receiving the probe request, the AP 120 around the terminal device 110 will transmit a probe response with a service set identifier (SSID) of a Wi-Fi hotspot corresponding to the AP. The terminal device then adds the SSID to a scan list. In addition, when the terminal device transmits the probe request, a timer is started. When the terminal device receives the probe response transmitted by the AP, a feedback duration corresponding to the AP is recorded. In the final scan list, different APs correspond to different feedback durations. The longer the feedback duration is, the worse the connection state between the terminal device and the AP is. When an access instruction for the Wi-Fi hotspot in the scan list is detected later, the terminal device 110 first determines whether the feedback duration of the Wi-Fi hotspot is long. If the feedback duration of the Wi-Fi hotspot is long, information transmission power of the terminal device 110 is increased, so as to improve the efficiency of accessing the Wi-Fi hotspot. The information transmission power is power at which the terminal device transmits information to other devices, such as, power at which the terminal device transmits the access request to the AP.

FIG. 2 illustrates a schematic flow chart of a method for processing information according to an implementation of the present disclosure. The method includes the following.

At block 201, a terminal device performs a Wi-Fi scanning operation through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N APs. The feedback duration refers to a time period from the terminal device transmitting a probe request to a first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request. The first AP is any one of the N APs and N is an integer greater than one.

At block 202, when an access instruction for a second AP is detected, the terminal device determines first power of information transmission. The first power is equal to second power plus a first power variable. A value of the first power variable is greater than zero when a feedback duration corresponding to the second AP is within a preset duration range, and the second AP is one of the N APs.

At block 203, the terminal device transmits an access request to the second AP at the first power.

The second power is a fixed value. For example, the connection rate of the information in the 2.4 G is 1M and the corresponding transmission power is 17 dBmm.

The preset duration range may be, for example, from 60 ms to 300 ms, or other values.

In one implementation, the first power variable may be determined according to the feedback duration corresponding to the AP. For example, the first power variable=(feedback duration−an intermediate node of the preset duration range+1)*X, where X is a positive integer. For example, if X=5 dBm, the feedback duration=100 ms=0.1 s, and the preset duration range=60 ms˜300 ms=0.06 s˜0.3 s, then the intermediate node of the preset duration range is 180 ms=0.18 s, so that the first power variable is 4.6 dBm.

Alternatively, the first power variable may be determined according to a mapping relationship between power variables and feedback durations and the feedback duration corresponding to the AP. For example, the mapping relationship between the power variables and the feedback durations can be as illustrated in Table 1. Assuming that the feedback duration corresponding to the AP is 100 ms, the first power variable is 4 dBm according to Table 1.

TABLE 1 Feedback duration Power variable 40 ms~90 ms 3 dBm  91 ms~120 ms 4 dBm 121 ms~145 ms 6 dBm . . . . . .

In one implementation, different feedback durations within the preset duration range correspond to the same first power variable. Assuming that the preset duration range=60 ms˜300 ms, the first power variable=3 dBm, the first feedback duration=80 ms, and the second feedback duration=100 ms, the first power variable corresponding to the first feedback duration and the first power variable corresponding to the second feedback duration both are 3 dBm.

For example, the transmission power set by the terminal device is normally fixed power. The connection rate of the information in the 2.4 G is 1M and the corresponding transmission power is 17 dBmm. In a public place, the AP receives many connection requests. The connection request having the best signal quality and the lowest bit error rate may be accepted more easily. When scanning for the Wi-Fi network, the terminal device may transmit the probe request on the certain channel. After receiving the probe request, the AP around the terminal device will transmit the probe response with a SSID of a Wi-Fi hotspot and a MAC address of the AP corresponding to the SSID of the Wi-Fi hotspot. The terminal device then adds the SSID of the Wi-Fi hotspot and the MAC address of the AP corresponding to the SSID of the Wi-Fi hotspot to a scan list illustrated in Table 2 for example. In addition, when the terminal device transmits the probe request, a timer is started. When the terminal device receives the probe response transmitted by the AP, the feedback duration of the Wi-Fi hotspot corresponding to the AP is recorded in the scan list. In the final scan list, different APs correspond to different feedback durations. The longer the feedback duration is, the poor connection state between the terminal device and the AP is. When detecting the access instruction for the Wi-Fi hotspot in the scan list later, the terminal device first determines whether the feedback duration of the Wi-Fi hotspot is long. If the feedback duration of the Wi-Fi hotspot is long, the information transmission power of the terminal device is increased, so as to improve the efficiency of accessing the Wi-Fi hotspot.

TABLE 2 SSID MAC address Feedback duration A a₁ 60 ms B b₁ 50 ms b₂ 65 ms b₃ 70 ms . . . . . . b_(n) 100 ms C c 50 ms . . . . . . . . . D d 100 ms

In one implementation, the method further includes the following after the terminal device transmits the access request to the second AP corresponding to according to the first power.

When an access permit response fed back by the second AP for the access request is not received within a predetermined duration, the information transmission power is adjusted to third power, and an access request is transmitted to the second AP according to the third power. The third power is equal to the first power plus a second power variable, and a value of the second power variable is greater than zero.

The predetermined duration for example may be 1 s, 2 s, 3 s, 6 s, 7 s, or other durations.

The second power variable is a fixed value, such as 3 dBm.

For example, assuming that the predetermined duration is 150 ms, the first power is 20 dBm, and the second power variable is 3 dBm, when the terminal device does not receive an access permit response fed back by the second AP for the access request within 150 ms, it indicates the adjusted information transmission power is not enough. The information transmission power is increased to 23 dBm by the terminal device to further improve the Wi-Fi access efficiency.

In one implementation, when the feedback duration corresponding to the second AP is outside the preset duration range, a value of the first power variable is equal to zero. That is, the feedback duration corresponding to the second AP is less than the lower limit of the preset duration range. In other words, when the feedback duration of the second AP is outside the preset duration, the communication connection state between the terminal device and the second AP is better. In this situation, it is not necessary to adjust the information transmission power of the terminal device and the access request may be transmitted to the second AP at fixed transmission power (i.e., a value of the first power variable is equal to zero).

In one implementation, after transmitting the access request to the second AP, the method further includes the following.

The terminal device receives the access permit response fed back by the second AP for the access request, where the access permit response carries information of an IP address assigned to the terminal device by the second AP.

The terminal device accesses the second AP according to the IP address.

FIG. 3 illustrates a detailed schematic flow chart of another method for processing information according to an implementation of the present disclosure. The method includes the following.

At block 301, a terminal device performs a Wi-Fi scanning operation through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N APs. The feedback duration refers to a time period from the terminal device transmitting a probe request to a first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request. The first AP is any one of the N APs and N is an integer greater than one.

At block 302, the terminal device detects an access request for a second AP, where the second AP is one of the N APs.

At block 303, the terminal device determines whether a feedback duration corresponding to the second AP is within a preset duration range.

Based on a determination that the feedback duration corresponding to the second AP is within the preset duration range, operations at block 304 to block 305 are performed.

Based on a determination that the feedback duration corresponding to the second AP is not within the preset duration range, operations at block 306 are performed.

At block 304, the terminal device determines first power of information transmission according to the feedback duration corresponding to the second AP, the first power is equal to second power plus a first power variable, and a value of the first power variable is greater than zero.

At block 305, the terminal device transmits the access request to the second AP at the first power. After operation at block 305 is performed, the method proceeds to operations at block 307.

At block 306, the terminal device transmits the access request to the second AP according to the second power. After operation at block 306 is performed, the method proceeds to operations at block 307-308.

At block 307, the terminal device receives an access permit response fed back by the second AP for the access request, where the access permit response carries an IP address assigned to the terminal device by the second AP.

At block 308, the terminal device accesses the second AP according to the IP address.

It is to be noted that the specific implementation of the method illustrated in FIG. 3 may refer to the specific implementation described in the foregoing method, which will not be described in further details herein.

FIG. 4 illustrates a schematic block diagram of a terminal device according to an implementation of the present disclosure. The terminal device 400 includes a scanning unit, a determining unit, and a transmitting unit.

The scanning unit 401 is configured to perform a Wi-Fi scanning operation through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N APs. The feedback duration refers to a time period from the terminal device transmitting a probe request to a first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request. The first AP is any one of the N APs and N is an integer greater than one.

The determination unit 402 is configured to determine first power of information transmission according to a feedback duration corresponding to a second AP when an access instruction for the second AP is detected. The first power is equal to second power plus a first power variable. A value of the first power variable is greater than zero when a feedback duration corresponding to the second AP is within a preset duration range, and the second AP is one of the N APs.

The transmitting unit 403 is configured to transmit an access request to the second AP at the first power.

In one implementation, the terminal device 400 further includes a power adjusting unit.

The power adjustment unit 404 is configured to adjust the information transmission power to third power when an access permit response fed back by the second AP for the access request is not received within a predetermined duration. The third power is equal to the first power plus a second power variable, and a value of the second power variable is greater than zero.

The transmitting unit 403 is further configured to transmit the access request to the second AP according to the third power.

In one implementation, the second power variable is a fixed value.

In one implementation, when the feedback duration corresponding to the second AP is outside the preset duration range, a value of the first power variable is equal to zero.

In one implementation, the first power variable is determined according to the feedback duration corresponding to the AP.

In one implementation, the first power variable is determined according to a mapping relationship between power variables and feedback durations and the feedback duration corresponding to the AP.

In one implementation, the first power variable=(the feedback duration−an intermediate node of the preset duration range+1)*X, where the X is a positive integer.

In one implementation, different feedback durations within the preset duration range correspond to the same first power variable.

In one implementation, the terminal device further includes a receiving unit 405 and an accessing unit 406.

The receiving unit 405 is configured to receive the access permit response fed back by the second AP for the access request. The allowed access response carries information of an IP address assigned to the terminal device by the second AP.

The accessing unit 406 is configured to access the second AP according to the IP address.

It is to be noted that the above units (the scanning unit 401, the determining unit 402, the transmitting unit 403, the power adjusting unit 404, the receiving unit 405, and the accessing unit 406) are used to perform the related operations in the above-described method.

In the present disclosure, the terminal device 400 is presented in the form of units. The term “unit” used herein may refer to an application-specific integrated circuit (ASIC), a processor capable of executing one or more software or firmware programs and a memory, an integrated logic circuit, and/or other suitable components capable of providing the above-described functions. In one implementation, the scanning unit 401, the determining unit 402, power adjusting unit 404, and accessing unit 406 may be implemented by a processor 501 of a terminal device illustrated in FIG. 5, and the transmitting unit 403 and receiving unit 405 may be implemented by a communication interface 503 of the terminal device as illustrated in FIG. 5.

As illustrated in FIG. 5, the terminal device 500 may be implemented in the structure of FIG. 5. The terminal device 500 includes at least one processor 501, at least one memory 502, and at least one communication interface 503. The processor 501, the memory 502, and the communication interface 503 are coupled by a communication bus and communicate with each other.

The processor 501 may be a general-purpose central processing unit (CPU), a microprocessor, an ASIC, or one or more integrated circuits for controlling execution of programs of the above schemes.

The communication interface 503 is configured to communicate with other devices or communication networks, such as an Ethernet, a radio access network (RAN), a wireless local area network (WLAN), and the like.

The memory 502 may be a read-only memory (ROM) or other types of static storage devices that may store static information and instructions, a random access memory (RAM) or other types of dynamic storage device that may store information and instructions. The memory 502 may also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other compact disc storages, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage devices, or any other medium that may be used to carry or store desired program codes in the form of instructions or data structure and may be accessed by a computer. The disclosure is not limited thereto. The memory can be separated from the processor and be connected to the processor via a bus. The memory can also be integrated with the processor.

The memory 502 is configured to store application codes for executing the above scheme and is controlled by the processor 501 for execution. The processor 501 is configured to execute the application codes stored in the memory 502.

The application codes stored in the memory 502 can be executed by the terminal device for implementing the above method for processing information. For example, a Wi-Fi scanning operation is performed through the Wi-Fi scanning unit to obtain the N feedback durations corresponding to the N APs, where the feedback duration refers to a time period from a terminal device transmitting a probe request to a first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request, the first AP is any one of the N Aps, and N is an integer greater than 1. When the access instruction for the second AP is detected, the first power of information transmission is determined according to the feedback duration corresponding to the second AP. The first power is equal to the second power plus the first power variable, a value of the first power variable is greater than zero when the feedback duration corresponding to the second AP is within the preset duration range, and the second AP is one of the N APs. The access request is transmitted to the second AP at to the first power.

In one implementation, the terminal device is a mobile phone. Components of the mobile phone will be specifically described below in combination with the accompanying FIG. 6.

The RF circuit 610 may be configured to receive and transmit signals during transmitting/receiving information or a call. After receiving downlink information of a base station, The RF circuit 610 may transmit the downlink information to the processor 680 to be processed. In general, the RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and so on. In addition, the RF circuit 610 may also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, which includes but is not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), Wideband code division multiple access (WCDMA), long term evolution (LTE), E-mail, short messaging service (SMS), and so on.

The memory 620 may be configured to store software programs and modules. The processor 680 may be configured to execute various function applications and data processing of the mobile phone by running software programs and the modules stored in the memory 620. The memory 620 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required for at least one function (such as a Wi-Fi scanning function, an information transmission/reception function, a power adjusting function), and the like. The data storage area can store data (such as the first power, the third power, and the IP address assigned by the second AP to the terminal device) created according to the use of the mobile phone, and the like. Moreover, memory 620 can include high-speed random access memory, and can also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

The input unit 630 may be configured to receive input digital or character information and generate key signal input associated with user setting and function control of the mobile phone. As one implementation, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, is configured to collect touch operations performed by a user thereon or nearby the touch panel 631 (such as operations performed by the user using any suitable object or accessory such as a finger, a stylus, or the like to touch the touch panel 931 or areas near the touch panel 931), and to drive a corresponding connecting device according to a preset program. In one implementation, the touch panel 631 can include two parts, that is, a touch detection device and a touch controller. The touch detection device is configured to detect the touch orientation of the user and a signal brought by the touch operation, and to transmit the signal to the touch controller. The touch controller is configured to receive the touch information from the touch detection device, to convert the touch information into contact coordinates to be sent to the processor 680, and to receive and execute commands from the processor 680. In addition, the touch panel 631 can be implemented in various types such as a resistive touch panel, a capacitive touch panel, an infrared touch panel, and a surface acoustic wave touch panel. In addition to the touch panel 631, the input unit 630 may further include other input devices 632. The other input devices 632 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control button, a switch button, and so on), a trackball, a mouse, a joystick, and the like.

The display unit 640 is configured to display information input by the user, information provided for the user, or various menus of the mobile phone. The display unit 640 can include a display panel 641. In one implementation, the display panel 641 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), and so on. Furthermore, the touch panel 631 can cover the display panel 641. When the touch panel 631 detects a touch operation thereon or nearby, the touch panel 931 transmits the touch operation to the processor 580 to determine a type of the touch event, and then the processor 680 provides a corresponding visual output on display panel 641 according to the type of the touch event. Although in FIG. 6, the touch panel 631 and the display panel 641 function as two independent components to implement input and output functions of the mobile phone, in some implementations, the touch panel 631 may be integrated with the display panel 641 to implement the input and output functions of the phone.

The mobile phone may also include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors. In one implementation, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust the luminance of the display panel 641 according to the luminance of the ambient light, and the proximity sensor may turn off the display panel 641 and/or backlight when the mobile phone reaches nearby the ear. As a kind of motion sensor, the accelerometer sensor can detect magnitude of acceleration in all direction (usually three axes), and when the mobile phone is stationary, the accelerometer sensor can detect the magnitude and direction of gravity. The accelerometer sensor can also be configured for applications related to identification of mobile-phone gestures (such as vertical and horizontal screen switch), or can be used for vibration-recognition related functions (such as a pedometer, percussion), and so on. The mobile phone can also be equipped with other sensors, such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and so on, and details are not described herein again.

The audio circuit 660, the speaker 661, and the microphone 662 may provide audio interfaces between the user and the mobile phone. The audio circuit 660 can convert the received audio data into an electrical signal and transmit the electrical signal to the speaker 661, and then the speaker 661 may convert the electrical signal to a sound signal to output. On the other hand, the microphone 662 may convert the collected sound signal into an electrical signal, which will be received and converted to audio data by the audio circuit 660 to output to the processor 680. The audio data is then processed by the processor 680 and transmitted via the RF circuit 610 to another mobile phone. Alternatively, the audio data may be output to the memory 620 for further processing.

Wi-Fi belongs to a short-range wireless transmission technology. With aid of the Wi-Fi module 670, the mobile phone can help users send and receive e-mail, browse the web, access streaming media, and so on, which provides the users with wireless broadband Internet access. Although the Wi-Fi module 670 is illustrated in FIG. 6, however, it should be understood that the Wi-Fi module 670 is not a necessary component of a mobile phone, and can be completely omitted as needed without changing the essence of the disclosure.

The processor 680 is a control center for the mobile phone. The processor 680 connects various parts of the entire mobile phone through various interfaces and lines. By running or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, the processor 680 can execute various functions of the mobile phone and conduct data processing, so as to monitor the mobile phone as a whole that uses various interfaces and lines to connect various components of the mobile phone, performs various functions and processes data of the mobile phone by running or executing software programs and/or modules stored in the memory 620, and invoking data stored in the memory 620, thereby overall monitoring the mobile phone. In one implementation, the processor 680 can include at least one processing unit. In one implementation, the processor 680 can be integrated with an application processor and a modem processor, where the application processor is mainly configured to handle an operating system, a user interface, applications, and so on and the modem processor is mainly configured to deal with wireless communication. It will be appreciated that the modem processor mentioned above may not be integrated into the processor 680.

The mobile phone further includes a power supply 690 (such as a battery) for powering various components. In one implementation, the power supply can be logically connected to the processor 680 via a power management system, to manage charging, discharging, power management functions, and so on through the power management system.

Although not illustrated, the mobile phone may further include a camera, a Bluetooth module, and so on, and details are not described herein again.

In the foregoing implementations, each operation of the method may be implemented based on the structure of the mobile phone in FIG. 6.

An implementation of the present disclosure further provides a computer-readable storage medium. The computer-readable storage medium is configured to store computer programs. The computer programs may perform some or all of the operations of any one of the methods for processing information as described in the above method implementations.

It should be noted that, for the foregoing method implementations, for a brief description, all of the method implementations are described as a series of operation combinations. However, those skilled in the art should understand that the present disclosure is not limited by the described sequence of operations, as certain steps may be performed in other sequences or concurrently according to the present disclosure. Besides, those skilled in the art should also know that the implementations described in the specification are exemplary implementations, and the actions and modules involved are not necessarily required by the present disclosure.

In the foregoing implementations, the description of each implementation has its own emphasis. For the parts not described in detail in one implementation, reference may be made to related descriptions in other implementations.

In the implementations provided in the present disclosure, it should be understood that, the device disclosed may be implemented in other ways. For example, the device implementations described above are merely illustrative. For instance, the division of the unit is only a logical function division and there can be another way of division during actual implementations. For example, multiple units or components may be combined or may be integrated into another system, or some features may be ignored or not performed. In addition, coupling or communication connection between each illustrated or discussed component may be direct coupling or communication connection, or may be indirect coupling or communication among devices or units via some interfaces, and may be electrical connection, mechanical connection, or other forms of connection.

The units described as separate components may or may not be physically separated, the components illustrated as units may or may not be physical units, and namely they may be in the same place or may be distributed to multiple network units. Part or all of the units may be selected according to actual needs to achieve the purpose of the technical solutions of the implementations.

In addition, the functional units in various implementations of the present disclosure may be integrated in one processing unit, or each unit may be physically present, or two or more units may be integrated in one unit. The above-mentioned integrated unit may be implemented in the form of hardware or a software function unit.

The integrated units may be stored in a computer-readable storage medium, when the integrated units are implemented in the form of software functional modules and sold or used as an independent product. Based on this understanding, the technical solution of the present disclosure essentially, or the part contributing to the related art, or all or part of the technical solution may be implemented in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, and so on) to execute some or all of the steps of the method according to each implementation of the present disclosure. The foregoing storage medium includes various media capable of storing program codes, such as a universal serial bus (USB), flash disk, a ROM, a RAM, a removable hard disk, a magnetic disk, an optical disk, and so on.

The implementations of the present disclosure are described in detail above, specific examples are used herein to describe the principle and implementation manners of the present disclosure. The description of the above implementations is merely used to help understand the method and the core idea of the present disclosure. Meanwhile, those skilled in the art may make modifications to the specific implementation manners and the application scope according to the idea of the present disclosure. In summary, the contents of the specification should not be construed as limiting the present disclosure. 

1. A method for processing information, comprising: performing a wireless fidelity (Wi-Fi) scanning operation through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N access points (APs), wherein the feedback duration refers to a time period from a terminal device transmitting a probe request to a first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request, the first AP is any one of the N APs, and N is an integer greater than one; determining first power of information transmission according to a feedback duration corresponding to a second AP when an access instruction for the second AP is detected, wherein the first power is equal to second power plus a first power variable, a value of the first power variable is greater than zero when the feedback duration corresponding to the second AP is within a preset duration range, and the second AP is one of the N APs; and transmitting an access request to the second AP at the first power.
 2. The method of claim 1, wherein the method further comprises: after the transmitting an access request to the second AP at the first power, adjusting information transmission power to third power and transmitting the access request to the second AP according to the third power when an access permit response fed back by the second AP for the access request is not received within a predetermined duration, wherein the third power is equal to the first power plus a second power variable, and a value of the second power variable is greater than zero.
 3. The method of claim 2, wherein the second power variable is a fixed value.
 4. The method of claim 1, wherein a value of the first power variable is equal to zero when the feedback duration corresponding to the second AP is outside the preset duration range.
 5. The method of any of claim 1, wherein the first power variable is determined according to the feedback duration corresponding to the second AP.
 6. The method of claim 5, wherein the first power variable is determined according to a mapping relationship between power variables and feedback durations and the feedback duration corresponding to the second AP.
 7. The method of claim 5, wherein the first power variable=(the feedback duration−an intermediate node of the preset duration range+1)*X, and X is a positive integer.
 8. The method of claim 1, wherein different feedback durations within the preset duration range correspond to the same first power variable.
 9. The method of claim 1, wherein the method further comprises: after the transmitting an access request to the second AP at the first power: receiving an access permit response fed back by the second AP for the access request, wherein the access permit response carries information of an internet protocol (IP) address assigned to the terminal device by the second AP; and accessing the second AP according to the IP address.
 10. A terminal device, comprising: at least one processor; and a computer readable storage medium, coupled to the at least one processor and storing at least one computer executable instruction thereon which, when executed by the at least one processor, causes the at least one processor to carry out actions, comprising: performing a Wi-Fi scanning operation through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N APs, wherein the feedback duration refers to a time of required from a terminal device transmitting a probe request to a first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request, the first AP is any one of the N APs, and N is an integer greater than one; determining first power of information transmission according to a feedback duration corresponding to a second AP when an access instruction for the second AP is detected, wherein the first power is equal to second power plus a first power variable, a value of the first power variable is greater than zero when the feedback duration corresponding to the second AP is within a preset duration range, and the second AP is one of the N APs; and transmitting an access request to the second AP at the first power.
 11. The terminal device of claim 10, wherein the at least one processor is further caused to carry out actions, comprising: adjusting information transmission power to third power when an access permit response fed back by the second AP for the access request is not received within a predetermined duration, wherein the third power is equal to the first power plus a second power variable, and a value of the second power variable is greater than zero; and transforming the access request to the second AP according to the third power.
 12. The terminal device of claim 11, wherein the second power variable is a fixed value.
 13. The terminal device of claim 10, wherein a value of the first power variable is equal to zero when the feedback duration corresponding to the second AP is outside the preset duration range.
 14. The terminal device of claim 10, wherein the first power variable is determined according to the feedback duration corresponding to the second AP.
 15. The terminal device of claim 14, wherein the first power variable is determined according to a mapping relationship between the power variables and the feedback durations and the feedback duration corresponding to the second AP.
 16. The terminal device of claim 14, wherein the first power variable=(the feedback duration−an intermediate node of the preset duration range+1)*X, and X is a positive integer.
 17. The terminal device of claim 10, wherein different feedback durations within the preset duration range correspond to the same first power variable.
 18. The terminal device of claim 10, wherein the at least one processor is further caused to carry out actions, comprising: receiving an access permit response fed back by the second AP for the access request, wherein the access permit response carries information of an IP address assigned to the terminal device by the second AP; and accessing the second AP according to the IP address.
 19. (canceled)
 20. (canceled)
 21. A non-transitory computer readable storage medium storing computer programs which, when executed by a processor, are operable with the processor carry out actions, comprising: performing a Wi-Fi scanning operation through a Wi-Fi scanning unit to obtain N feedback durations corresponding to N APs, wherein the feedback duration refers to a time period from a terminal device transmitting a probe request to a first AP to the terminal device receiving a probe response fed back by the first AP according to the probe request, the first AP is any one of the N APs, and N is an integer greater than one; determining first power of information transmission according to a feedback duration corresponding to a second AP when an access instruction for the second AP is detected, wherein the first power is equal to second power plus a first power variable, a value of the first power variable is greater than zero when the feedback duration corresponding to the second AP is within a preset duration range, and the second AP is one of the N APs; and transmitting an access request to the second AP at the first power.
 22. The non-transitory computer readable storage medium of claim 21, wherein the computer programs are further operable with the processor carry out actions, comprising: adjusting information transmission power to third power and transmitting the access request to the second AP according to the third power when an access permit response fed back by the second AP for the access request is not received within a predetermined duration, wherein the third power is equal to the first power plus a second power variable, and a value of the second power variable is greater than zero. 